package smdc.order.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import smdc.common.annotation.Excel;
import smdc.common.core.domain.BaseEntity;

/**
 * 订单详情对象 order_detail
 * 
 * @author maorui
 * @date 2025-03-28
 */
public class OrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 详情ID */
    private Long detailId;

    /** 关联订单ID */
    @Excel(name = "关联订单ID")
    private String orderId;

    /** 菜品ID */
    @Excel(name = "菜品ID")
    private Long dishId;

    /** 菜品名称(下单时的名称) */
    @Excel(name = "菜品名称(下单时的名称)")
    private String dishName;

    /** 菜品图片 */
    @Excel(name = "菜品图片")
    private String dishImage;

    /** 菜品单价 */
    @Excel(name = "菜品单价")
    private BigDecimal dishPrice;

    /** 菜品数量 */
    @Excel(name = "菜品数量")
    private Long dishQuantity;

    /** 菜品规格 */
    @Excel(name = "菜品规格")
    private String dishSpec;

    /** 单品备注 */
    @Excel(name = "单品备注")
    private String dishRemark;

    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }
    public void setDishName(String dishName) 
    {
        this.dishName = dishName;
    }

    public String getDishName() 
    {
        return dishName;
    }
    public void setDishImage(String dishImage) 
    {
        this.dishImage = dishImage;
    }

    public String getDishImage() 
    {
        return dishImage;
    }
    public void setDishPrice(BigDecimal dishPrice) 
    {
        this.dishPrice = dishPrice;
    }

    public BigDecimal getDishPrice() 
    {
        return dishPrice;
    }
    public void setDishQuantity(Long dishQuantity) 
    {
        this.dishQuantity = dishQuantity;
    }

    public Long getDishQuantity() 
    {
        return dishQuantity;
    }
    public void setDishSpec(String dishSpec) 
    {
        this.dishSpec = dishSpec;
    }

    public String getDishSpec() 
    {
        return dishSpec;
    }
    public void setDishRemark(String dishRemark) 
    {
        this.dishRemark = dishRemark;
    }

    public String getDishRemark() 
    {
        return dishRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("orderId", getOrderId())
            .append("dishId", getDishId())
            .append("dishName", getDishName())
            .append("dishImage", getDishImage())
            .append("dishPrice", getDishPrice())
            .append("dishQuantity", getDishQuantity())
            .append("dishSpec", getDishSpec())
            .append("dishRemark", getDishRemark())
            .append("createTime", getCreateTime())
            .toString();
    }
}
